package com.zidongxiangxi.clock.http.message;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author chenxudong
 * @date 2021/02/01
 */
@Getter
@Setter
public class ClockMessage<T> implements Serializable {
    private Integer eventType;

    private Long eventTime;

    private T msgBody;

    public ClockMessage() {

    }

    public ClockMessage(Integer eventType, Long eventTime, T msgBody) {
        this.eventType = eventType;
        this.eventTime = eventTime;
        this.msgBody = msgBody;
    }
}
